package com.ruoyi.user.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.user.mapper.TbBackOfficerMapper;
import com.ruoyi.user.domain.TbBackOfficer;
import com.ruoyi.user.service.ITbBackOfficerService;

/**
 * 后台人员管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-15
 */
@Service
public class TbBackOfficerServiceImpl implements ITbBackOfficerService 
{
    @Autowired
    private TbBackOfficerMapper tbBackOfficerMapper;

    /**
     * 查询后台人员管理
     * 
     * @param backOfficerId 后台人员管理主键
     * @return 后台人员管理
     */
    @Override
    public TbBackOfficer selectTbBackOfficerByBackOfficerId(Long backOfficerId)
    {
        return tbBackOfficerMapper.selectTbBackOfficerByBackOfficerId(backOfficerId);
    }

    /**
     * 查询后台人员管理列表
     * 
     * @param tbBackOfficer 后台人员管理
     * @return 后台人员管理
     */
    @Override
    public List<TbBackOfficer> selectTbBackOfficerList(TbBackOfficer tbBackOfficer)
    {
        return tbBackOfficerMapper.selectTbBackOfficerList(tbBackOfficer);
    }

    /**
     * 新增后台人员管理
     * 
     * @param tbBackOfficer 后台人员管理
     * @return 结果
     */
    @Override
    public int insertTbBackOfficer(TbBackOfficer tbBackOfficer)
    {
        return tbBackOfficerMapper.insertTbBackOfficer(tbBackOfficer);
    }

    /**
     * 修改后台人员管理
     * 
     * @param tbBackOfficer 后台人员管理
     * @return 结果
     */
    @Override
    public int updateTbBackOfficer(TbBackOfficer tbBackOfficer)
    {
        return tbBackOfficerMapper.updateTbBackOfficer(tbBackOfficer);
    }

    /**
     * 批量删除后台人员管理
     * 
     * @param backOfficerIds 需要删除的后台人员管理主键
     * @return 结果
     */
    @Override
    public int deleteTbBackOfficerByBackOfficerIds(Long[] backOfficerIds)
    {
        return tbBackOfficerMapper.deleteTbBackOfficerByBackOfficerIds(backOfficerIds);
    }

    /**
     * 删除后台人员管理信息
     * 
     * @param backOfficerId 后台人员管理主键
     * @return 结果
     */
    @Override
    public int deleteTbBackOfficerByBackOfficerId(Long backOfficerId)
    {
        return tbBackOfficerMapper.deleteTbBackOfficerByBackOfficerId(backOfficerId);
    }
}
